package com.khshop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.khshop.pojo.Collect;
import com.baomidou.mybatisplus.extension.service.IService;
import com.khshop.pojo.Collect;
import com.khshop.vo.ServiceResult;

import java.util.Map;

/**
 * <p>
 * 收藏 服务类
 * </p>
 *
 * @author zhaoyang
 * @since 2020-10-16
 */
public interface CollectService extends IService<Collect> {


    //新增收藏
    public ServiceResult<Collect> addCollect(Collect collect);

    //修改收藏
    public ServiceResult<Collect> updateCollect(Collect collect);

    //删除收藏
    public ServiceResult<Collect> delCollect(Integer id);

    //查询收藏
    public ServiceResult<IPage<Collect>> searchCollect(Map<String,String> map, Integer page, Integer limit);

}
